using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Configuration;
using Transferomatic.ApplicationControllers;
using System.Diagnostics;

namespace Transferomatic
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            if (NativeMethods.IsReallyVista && !NativeMethods.IsElevated)
            {
                ProcessStartInfo theStartInfo =
                    new ProcessStartInfo("TransferomaticUACElevationCheckHelper.exe");
                theStartInfo.UseShellExecute = true;
                Process.Start(theStartInfo);

                return;
            }

            Controller theController = new Controller();
            theController.StartApp();
        }
    }
}